package com.ruoyi.project.system.member.domain;

import java.math.BigDecimal;
import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 小程序用户对象 member
 * 
 * @author f_baisi
 * @date 2020-06-09
 */
public class Member extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 角色 */
    @Excel(name = "角色")
    private Integer role;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobile;

    /** 微信号 */
    @Excel(name = "微信号")
    private String wechat;

    /** 性别 */
    @Excel(name = "性别")
    private Integer sex;

    /** 唯一的openId */
    private String openid;

    /** 用户头像 */
    @Excel(name = "用户头像")
    private String headpic;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String username;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String name;

    /** 用户密码(授权登录的话 暂时没用) */
    private String password;

    /** token */
    private String token;

    /** 账户状态 */
    @Excel(name = "账户状态")
    private Integer status;

    /** 推荐人ID */
    @Excel(name = "推荐人ID")
    private String introUser;

    /** 推荐人数量 */
    @Excel(name = "推荐人数量")
    private Long recommendNum;

    /** 好奇币数量 */
    @Excel(name = "好奇币数量")
    private BigDecimal haoqiCoin;

    /** 身份证编号 */
    @Excel(name = "身份证编号")
    private String idCard;

    /** 身份证正面访问路径 */
    private String cardHeaderImg;

    /** 身份证正面真实路径 */
    private String cardHeaderRealPath;

    /** 身份证背面访问路径 */
    private String cardBackImg;

    /** 身份证背面真实路径 */
    private String cardBackRealPath;

    /** 是否审核通过 0 未完善 1 待审核 2 通过 3 不通过*/
    @Excel(name = "是否审核通过 0 未完善 1 待审核 2 通过 3 不通过")
    private Integer isExamine;

    /** 是否是会员 0 不是 1 是 */
    @Excel(name = "是否是会员 0 不是 1 是")
    private Integer isVip;

    /** 会员结束时间 */
    @Excel(name = "会员结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
    private Date vipEndTime;

    /** 审核不通过原因 */
    private String reason;

    /** 注册时间 */
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
    private Date created;

    private String qrCode;


    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setRole(Integer role) 
    {
        this.role = role;
    }

    public Integer getRole() 
    {
        return role;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setWechat(String wechat) 
    {
        this.wechat = wechat;
    }

    public String getWechat() 
    {
        return wechat;
    }
    public void setSex(Integer sex) 
    {
        this.sex = sex;
    }

    public Integer getSex() 
    {
        return sex;
    }
    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }
    public void setHeadpic(String headpic) 
    {
        this.headpic = headpic;
    }

    public String getHeadpic() 
    {
        return headpic;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setToken(String token) 
    {
        this.token = token;
    }

    public String getToken() 
    {
        return token;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setIntroUser(String introUser) 
    {
        this.introUser = introUser;
    }

    public String getIntroUser() 
    {
        return introUser;
    }
    public void setRecommendNum(Long recommendNum) 
    {
        this.recommendNum = recommendNum;
    }

    public Long getRecommendNum() 
    {
        return recommendNum;
    }
    public void setHaoqiCoin(BigDecimal haoqiCoin)
    {
        this.haoqiCoin = haoqiCoin;
    }

    public BigDecimal getHaoqiCoin()
    {
        return haoqiCoin;
    }
    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    public String getIdCard() 
    {
        return idCard;
    }
    public void setCardHeaderImg(String cardHeaderImg) 
    {
        this.cardHeaderImg = cardHeaderImg;
    }

    public String getCardHeaderImg() 
    {
        return cardHeaderImg;
    }
    public void setCardHeaderRealPath(String cardHeaderRealPath) 
    {
        this.cardHeaderRealPath = cardHeaderRealPath;
    }

    public String getCardHeaderRealPath() 
    {
        return cardHeaderRealPath;
    }
    public void setCardBackImg(String cardBackImg) 
    {
        this.cardBackImg = cardBackImg;
    }

    public String getCardBackImg() 
    {
        return cardBackImg;
    }
    public void setCardBackRealPath(String cardBackRealPath) 
    {
        this.cardBackRealPath = cardBackRealPath;
    }

    public String getCardBackRealPath() 
    {
        return cardBackRealPath;
    }
    public void setIsExamine(Integer isExamine) 
    {
        this.isExamine = isExamine;
    }

    public Integer getIsExamine() 
    {
        return isExamine;
    }

    public Integer getIsVip() {
        return isVip;
    }

    public void setIsVip(Integer isVip) {
        this.isVip = isVip;
    }

    public Date getVipEndTime() {
        return vipEndTime;
    }

    public void setVipEndTime(Date vipEndTime) {
        this.vipEndTime = vipEndTime;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public String getQrCode() {
        return qrCode;
    }

    public void setQrCode(String qrCode) {
        this.qrCode = qrCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("role", getRole())
            .append("mobile", getMobile())
            .append("wechat", getWechat())
            .append("sex", getSex())
            .append("openid", getOpenid())
            .append("headpic", getHeadpic())
            .append("name", getName())
            .append("password", getPassword())
            .append("token", getToken())
            .append("status", getStatus())
            .append("introUser", getIntroUser())
            .append("recommendNum", getRecommendNum())
            .append("haoqiCoin", getHaoqiCoin())
            .append("idCard", getIdCard())
            .append("cardHeaderImg", getCardHeaderImg())
            .append("cardHeaderRealPath", getCardHeaderRealPath())
            .append("cardBackImg", getCardBackImg())
            .append("cardBackRealPath", getCardBackRealPath())
            .append("isExamine", getIsExamine())
            .append("isVip", getIsVip())
            .append("vipEndTime", getVipEndTime())
            .append("reason", getReason())
            .append("username", getUsername())
            .append("created",getCreated())
            .toString();
    }
}
